<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<h3><fmt:message key="administrator.heading"/></h3>
<table class="borderedlist">
	<tr>
      <td width="20%"><fmt:message key="administrator.username"/></td>
      <td><c:out value="${administrator.username}"/></td>
    </tr>
	<tr>
	  <td><fmt:message key="administrator.name"/></td>
	  <td><c:out value="${administrator.name}"/></td>	
    </tr>
    <tr>
      <td><fmt:message key="administrator.enabled"/></td>
	  <td>
			<c:if test="${administrator.enabled}">
              <fmt:message key="application.yes"/>
			</c:if>
			<c:if test="${!administrator.enabled}">
			  <fmt:message key="application.no"/>	
			</c:if>
	  </td>	
    </tr>
    <tr>
      <td><fmt:message key="administrator.email"/></td>
      <td><c:out value="${administrator.email}"/></td>	
    </tr>
    <tr>
      <td><fmt:message key="administrator.phone"/></td>
      <td><c:out value="${administrator.phone}"/></td>	
    </tr>
    <tr>
      <td><fmt:message key="administrator.address"/></td>
      <td><c:out value="${administrator.address}"/></td>	
    </tr>
</table>
<form:form>
  <input type="button" align="center" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="document.location='administratoredit.htm?id=<c:out value="${administrator.id}"/>'" value="<fmt:message key="administrator.edit.heading"/>"/>
  <input type="button" align="center" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="document.location='administratorpassword.htm?id=<c:out value="${administrator.id}"/>'" value="<fmt:message key="administrator.password"/>"/>
  <input type="button" align="center" class="btn" onmouseover="this.className='btn btnhov'" onmouseout="this.className='btn'" onclick="document.location='<c:url value="administrators.htm"/>'" value="<fmt:message key="administrator.all"/>"/>
</form:form>